<div class="page">
	<div class="pageContent">
		<form id="formLogin" method="post" action="/account/login" class="pageForm" onsubmit="return validateCallback(this, dialogAjaxDone)">
			<div class="pageFormContent" layoutH="58">
				<div class="unit">
					<label>用户名：</label> <input type="text" name="username" size="30" class="textInputRequired required" />
				</div>
				<div class="unit">
					<label>密码：</label> <input type="password" name="password" size="30" class="textInputRequired required" />
				</div>
			</div>
			<div class="formBar">
				<ul>
					<li><div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">提交</button>
							</div>
						</div></li>
					<li><div class="button">
							<div class="buttonContent">
								<button type="button" class="close" onclick="$.cookie('is_login',null);location.reload()">取消</button>
							</div>
						</div></li>
				</ul>
			</div>
		</form>
	</div>
</div>
<script>
	(function() {
		if (DWZ.user.username) {
			$("#formLogin input[name=username]").val(DWZ.user.username);
			$("#formLogin input[name=password]").focus();
			if (DWZ.user.isLogin())
				$("#formLogin input[name=username]").attr({
					"readonly" : "readonly",
					"enabled" : "enabled"
				});
		} else {
			$("#formLogin input[name=username]").focus();
		}
	})(jQuery)
</script>